package com.xjtu.platform.security.modifypassword.dao;

import com.xjtu.platform.security.modifypassword.ModifyPasswordDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ModifyPasswordDao {
    @Select(
            "select user_pwd from user where user_id = #{user_id}"
    )
    String searchPwdById(ModifyPasswordDto dto);

    @Update(
            "update user set user_pwd = #{user_pwd} where user_id = #{user_id}"
    )
    boolean modifyPasswordById(ModifyPasswordDto dto);
}
